package com.whu.waterworks.model;
// default package

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * TCommontype entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "T_COMMONTYPE", schema = "ZJ")
public class Commontype implements java.io.Serializable {

	// Fields

	private CommontypeId id;
	private String type;
	private String uppervalue;
	private String lowervalue;
	private String range;

	// Constructors

	/** default constructor */
	public Commontype() {
	}

	/** minimal constructor */
	public Commontype(CommontypeId id) {
		this.id = id;
	}

	/** full constructor */
	public Commontype(CommontypeId id, String type, String uppervalue,
			String lowervalue, String range) {
		this.id = id;
		this.type = type;
		this.uppervalue = uppervalue;
		this.lowervalue = lowervalue;
		this.range = range;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "stationnum", column = @Column(name = "STATIONNUM", nullable = false, length = 50)),
			@AttributeOverride(name = "channelnum", column = @Column(name = "CHANNELNUM", nullable = false, length = 50)) })
	public CommontypeId getId() {
		return this.id;
	}

	public void setId(CommontypeId id) {
		this.id = id;
	}

	@Column(name = "TYPE", length = 50)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "UPPERVALUE", length = 50)
	public String getUppervalue() {
		return this.uppervalue;
	}

	public void setUppervalue(String uppervalue) {
		this.uppervalue = uppervalue;
	}

	@Column(name = "LOWERVALUE", length = 50)
	public String getLowervalue() {
		return this.lowervalue;
	}

	public void setLowervalue(String lowervalue) {
		this.lowervalue = lowervalue;
	}

	@Column(name = "RANGE", length = 50)
	public String getRange() {
		return this.range;
	}

	public void setRange(String range) {
		this.range = range;
	}

}